chase (one's) tail

Translations
courir après sa queue
Definitions
To engage in a futile or pointless activity, often involving a lot of effort but resulting in no progress or achievement.